{include file="common/head"}

<body class="lyear-index">
  <div class="lyear-layout-web">
    <div class="lyear-layout-container">
      <!--左侧导航-->
      <aside class="lyear-layout-sidebar">
        <!-- logo -->
        <div id="logo" class="sidebar-header">
          <a href="{:url('/admin/index/index')}"><img src="{:config('system.base.logo')}"
              title="{$system.base.title} | 后台管理" alt="{$system.base.title}" /></a>
        </div>
        <div class="lyear-layout-sidebar-info lyear-scroll">
          <nav class="sidebar-main">
            <ul class="nav-drawer">
              <li class="nav-item active">
                <a class="multitabs" href="{:url('/admin/index/main')}" id="default-page">
                  <i class="mdi mdi-home-minus-outline"></i>
                  <span>后台首页</span>
                </a>
              </li>
              <li class="nav-item nav-item-has-subnav">
                <a href="javascript:void(0)">
                  <i class="mdi mdi-database-arrow-right-outline"></i>
                  <span>数据管理</span>
                </a>
                <ul class="nav nav-subnav">
                  <li class="nav-item nav-item-has-subnav">
                    <a href="#!">文章管理</a>
                    <ul class="nav nav-subnav">
                      <li> <a class="multitabs" href="{:url('/admin/article/add')}">添加文章</a> </li>
                      <li> <a class="multitabs" href="{:url('/admin/article/index')}">文章列表</a> </li>
                    </ul>
                  </li>
                  <li> <a class="multitabs" href="{:url('/admin/user/index')}">用户管理</a> </li>
                  <li> <a class="multitabs" href="{:url('/admin/fake/index')}">卡密管理</a> </li>
                  <li> <a class="multitabs" href="{:url('/admin/comment/index')}">评论管理</a> </li>
                  <li> <a class="multitabs" href="{:url('/admin/category/index')}">分类管理</a> </li>
                  <li> <a class="multitabs" href="{:url('/admin/tap/index')}">标签管理</a> </li>
                  <li class="nav-item nav-item-has-subnav">
                    <a href="#!">商品管理</a>
                    <ul class="nav nav-subnav">
                      <li> <a class="multitabs" href="{:url('/admin/goods/index')}">商品列表</a> </li>
                      <li> <a class="multitabs" href="{:url('/admin/goodsCategory/index')}">商品分类</a> </li>
                    </ul>
                  </li>
                  <li> <a class="multitabs" href="{:url('/admin/link/index')}">友情链接</a> </li>
                  <li> <a class="multitabs" href="{:url('/admin/logs/index')}">日志管理</a> </li>
                  <!--  <li class="nav-item nav-item-has-subnav">
                  <a href="#!">一级菜单</a>
                  <ul class="nav nav-subnav">
                    <li> <a href="#!">二级菜单</a> </li>
                    <li class="nav-item nav-item-has-subnav">
                      <a href="#!">二级菜单</a>
                      <ul class="nav nav-subnav">
                        <li> <a href="#!">三级菜单</a> </li>
                        <li> <a href="#!">三级菜单</a> </li>
                      </ul>
                    </li>
                  </ul>
                </li> -->
                </ul>
              </li>
              <li class="nav-item nav-item-has-subnav">
                <a href="javascript:void(0)">
                  <i class="mdi   mdi-account-star-outline"></i>
                  <span>角色管理</span>
                </a>
                <ul class="nav nav-subnav">
                  <li> <a class="multitabs" href="{:url('/admin/role/index')}">角色列表</a> </li>
                  <li> <a class="multitabs" href="{:url('/admin/auth/index')}">规则列表</a> </li>
                </ul>
              </li>
              <li class="nav-item ">
                <a class="multitabs" href="{:url('/admin/system/index')}">
                  <i class="mdi mdi-security"></i>
                  <span>网页配置</span>
                </a>
              </li>
              <li class="nav-item nav-item-has-subnav">
                <a href="javascript:void(0)">
                  <i class="mdi mdi-image-filter-vintage"></i>
                  <span>其他</span>
                </a>
                <ul class="nav nav-subnav">
                  <li> <a class="multitabs" href="{:url('/admin/msg/send')}">发送消息</a> </li>
                  <li> <a class="multitabs" href="#">待添加</a> </li>
                </ul>
              </li>
            </ul>
          </nav>

          <div class="sidebar-footer">
            <p class="copyright">
              <span>{:config('system.base.copyright')}</span>
              <!-- <a target="_blank" href="{:url('/admin/index/index')}">怪鸟</a> -->
              <span>{:config('system.base.icp')}</span>
            </p>
          </div>
        </div>
      </aside>
      <!--End 左侧导航-->
      <!--头部信息-->
      <header class="lyear-layout-header">
        <nav class="navbar">
          <div class="navbar-left">
            <div class="lyear-aside-toggler">
              <span class="lyear-toggler-bar"></span>
              <span class="lyear-toggler-bar"></span>
              <span class="lyear-toggler-bar"></span>
            </div>
          </div>

          <ul class="navbar-right d-flex align-items-center">
            <!--顶部消息部分-->
            <li class="dropdown dropdown-notice">
              <span data-bs-toggle="dropdown" class="position-relative icon-item">
                <i class="mdi mdi-bell-outline fs-5"></i>
                <span
                  class="position-absolute translate-middle badge bg-danger">{$artReview+$userReview+$linkReview+$goodStock.goodCtn+$goodStock.goodVip+$goodStock.goodFake}</span>
              </span>
              <div class="dropdown-menu dropdown-menu-end">
                <div class="lyear-notifications">

                  <div class="lyear-notifications-title d-flex justify-content-between" data-stopPropagation="true">
                    <a href="#!">查看全部</a>
                  </div>
                  <div class="lyear-notifications-info lyear-scroll">
                    {if $artReview != 0}
                    <a href="{:url('/admin/article/index')}" class="multitabs dropdown-item" title="待审核文章">待审核文章：<span
                        class="text-success">{$artReview}</span></a>
                    {/if}
                    {if $userReview != 0}
                    <a href="{:url('/admin/user/index')}" class="multitabs dropdown-item" title="待审核用户">待审核用户：<span
                        class="text-success">{$userReview}</span></a>
                    {/if}
                    {if $linkReview != 0}
                    <a href="{:url('/admin/link/index')}" class="multitabs dropdown-item" title="待审核友联">待审核友联：<span
                        class="text-success">{$linkReview}</span></a>
                    {/if}
                    {if $goodStock.goodCtn != 0}
                    <a href="{:url('/admin/goods/index')}" class="multitabs dropdown-item" title="[内容]商品库存已不足">[内容]库存不足的商品数量：<span
                      class="text-success">{$goodStock.goodCtn}</span></a>
                    {/if}
                    {if $goodStock.goodVip != 0}
                    <a href="{:url('/admin/goods/index')}" class="multitabs dropdown-item" title="[VIP时长]商品库存已不足">[VIP时长]库存不足的商品数量：<span
                      class="text-success">{$goodStock.goodVip}</span></a>
                    {/if}
                    {if $goodStock.goodFake != 0}
                    <a href="{:url('/admin/goods/index')}" class="multitabs dropdown-item" title="[卡密]商品库存已不足">[卡密]库存不足的商品数量：<span
                      class="text-success">{$goodStock.goodFake}</span></a>
                    {/if}
                  </div>

                </div>
              </div>
            </li>
            <!--End 顶部消息部分-->
            <!--切换主题配色-->
            <li class="dropdown dropdown-skin">
              <span data-bs-toggle="dropdown" class="icon-item">
                <i class="mdi mdi-palette fs-5"></i>
              </span>
              <ul class="dropdown-menu dropdown-menu-end" data-stopPropagation="true">
                <li class="lyear-skin-title">
                  <p>主题</p>
                </li>
                <li class="lyear-skin-li clearfix">
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="site_theme" id="site_theme_1" value="default"
                      checked="checked">
                    <label class="form-check-label" for="site_theme_1"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="site_theme" id="site_theme_2"
                      value="translucent-green">
                    <label class="form-check-label" for="site_theme_2"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="site_theme" id="site_theme_3"
                      value="translucent-blue">
                    <label class="form-check-label" for="site_theme_3"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="site_theme" id="site_theme_4"
                      value="translucent-yellow">
                    <label class="form-check-label" for="site_theme_4"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="site_theme" id="site_theme_5"
                      value="translucent-red">
                    <label class="form-check-label" for="site_theme_5"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="site_theme" id="site_theme_6"
                      value="translucent-pink">
                    <label class="form-check-label" for="site_theme_6"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="site_theme" id="site_theme_7"
                      value="translucent-cyan">
                    <label class="form-check-label" for="site_theme_7"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="site_theme" id="site_theme_8" value="dark">
                    <label class="form-check-label" for="site_theme_8"></label>
                  </div>
                </li>
                <li class="lyear-skin-title">
                  <p>LOGO</p>
                </li>
                <li class="lyear-skin-li clearfix">
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_1" value="default"
                      checked="checked">
                    <label class="form-check-label" for="logo_bg_1"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_2" value="color_2">
                    <label class="form-check-label" for="logo_bg_2"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_3" value="color_3">
                    <label class="form-check-label" for="logo_bg_3"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_4" value="color_4">
                    <label class="form-check-label" for="logo_bg_4"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_5" value="color_5">
                    <label class="form-check-label" for="logo_bg_5"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_6" value="color_6">
                    <label class="form-check-label" for="logo_bg_6"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_7" value="color_7">
                    <label class="form-check-label" for="logo_bg_7"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="logo_bg" id="logo_bg_8" value="color_8">
                    <label class="form-check-label" for="logo_bg_8"></label>
                  </div>
                </li>
                <li class="lyear-skin-title">
                  <p>头部</p>
                </li>
                <li class="lyear-skin-li clearfix">
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="header_bg" id="header_bg_1" value="default"
                      checked="checked">
                    <label class="form-check-label" for="header_bg_1"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="header_bg" id="header_bg_2" value="color_2">
                    <label class="form-check-label" for="header_bg_2"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="header_bg" id="header_bg_3" value="color_3">
                    <label class="form-check-label" for="header_bg_3"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="header_bg" id="header_bg_4" value="color_4">
                    <label class="form-check-label" for="header_bg_4"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="header_bg" id="header_bg_5" value="color_5">
                    <label class="form-check-label" for="header_bg_5"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="header_bg" id="header_bg_6" value="color_6">
                    <label class="form-check-label" for="header_bg_6"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="header_bg" id="header_bg_7" value="color_7">
                    <label class="form-check-label" for="header_bg_7"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="header_bg" id="header_bg_8" value="color_8">
                    <label class="form-check-label" for="header_bg_8"></label>
                  </div>
                </li>
                <li class="lyear-skin-title">
                  <p>侧边栏</p>
                </li>
                <li class="lyear-skin-li clearfix">
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_1" value="default"
                      checked="checked">
                    <label class="form-check-label" for="sidebar_bg_1"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_2" value="color_2">
                    <label class="form-check-label" for="sidebar_bg_2"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_3" value="color_3">
                    <label class="form-check-label" for="sidebar_bg_3"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_4" value="color_4">
                    <label class="form-check-label" for="sidebar_bg_4"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_5" value="color_5">
                    <label class="form-check-label" for="sidebar_bg_5"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_6" value="color_6">
                    <label class="form-check-label" for="sidebar_bg_6"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_7" value="color_7">
                    <label class="form-check-label" for="sidebar_bg_7"></label>
                  </div>
                  <div class="form-check form-check-inline">
                    <input class="form-check-input" type="radio" name="sidebar_bg" id="sidebar_bg_8" value="color_8">
                    <label class="form-check-label" for="sidebar_bg_8"></label>
                  </div>
                </li>
              </ul>
            </li>
            <!--End 切换主题配色-->
            <!--个人头像内容-->
            <li class="dropdown">
              <a href="javascript:void(0)" data-bs-toggle="dropdown" class="dropdown-toggle">
                <img class="avatar-md rounded-circle" src="{$Request.session.admin.headIcon}" alt="头像" />
                <span style="margin-left: 10px;">{$Request.session.admin.nickname}</span>
              </a>
              <ul class="dropdown-menu dropdown-menu-end">
                <li>
                  <a class="multitabs dropdown-item" data-url="{:url('/admin/account/index')}"
                    href="javascript:void(0)">
                    <i class="mdi mdi-account"></i>
                    <span>个人信息</span>
                  </a>
                </li>
                <li>
                  <a class="multitabs dropdown-item" data-url="{:url('/admin/account/changePwd')}"
                    href="javascript:void(0)">
                    <i class="mdi mdi-lock-outline"></i>
                    <span>修改密码</span>
                  </a>
                </li>
                <li>
                  <a class="dropdown-item" href="javascript:void(0)">
                    <i class="mdi mdi-delete"></i>
                    <span>清空缓存</span>
                  </a>
                </li>
                <li class="dropdown-divider"></li>
                <li>
                  <a class="dropdown-item" href="{:url('/admin/login/logout')}">
                    <i class="mdi mdi-logout-variant"></i>
                    <span>退出登录</span>
                  </a>
                </li>
              </ul>
            </li>
            <!--End 个人头像内容-->
          </ul>

        </nav>

      </header>
      <!--End 头部信息-->

      <!--页面主要内容-->
      <main class="lyear-layout-content card">

        <div id="iframe-content"></div>

      </main>
      <!--End 页面主要内容-->
    </div>
  </div>

  {include file="common/bottom"}

  <script type="text/javascript" src="__lyear__/js/perfect-scrollbar.min.js"></script>
  <script type="text/javascript" src="__lyear__/js/bootstrap-multitabs/multitabs.min.js"></script>
  <script type="text/javascript" src="__lyear__/js/jquery.cookie.min.js"></script>
  <script type="text/javascript" src="__lyear__/js/index.min.js"></script>
  <script type="text/javascript">
    $(document).ready(function (e) { });
  </script>